package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover;

import cn.com.api.mapper.ApiU_discoverMapper;
import cn.com.util.PageInfo;

/**
 * 
 **/
@Service
public class U_discoverServiceImplBase {
	@Autowired
	private ApiU_discoverMapper apiU_discoverMapper;
    
    // 根据id获取
	public ApiU_discover findU_discoverById(Integer id){
		ApiU_discover u_discover = apiU_discoverMapper.findU_discoverById( id );
		return u_discover;
	}
    
    //查看数据集
	public List<ApiU_discover> findU_discovers(){
        List<ApiU_discover> u_discovers = apiU_discoverMapper.findU_discovers();
		return u_discovers;
    }
   
    //根据条件查看数据集
	public List<ApiU_discover> findU_discoversByMap(Map map){
        List<ApiU_discover> u_discovers = apiU_discoverMapper.findU_discoversByMap(map);
		return u_discovers;
    }
    
	// 添加
	public int insertU_discover(ApiU_discover u_discover){
		int ret_I= apiU_discoverMapper.insertU_discover(u_discover);
		return ret_I;
	}

	// 修改
	public int updateU_discover(ApiU_discover u_discover){
		int ret_I= apiU_discoverMapper.updateU_discover(u_discover);
		return ret_I;
	}
	
    // 删除
	public int deleteU_discover(Integer id){
		int ret_I= apiU_discoverMapper.deleteU_discover( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		
    
    
}


